import { defineConfig } from "umi";
import env from "./env";
import routes from './routes';

const { REACT_APP_ENV = "dev",NODE_ENV } = process.env;
export default defineConfig({
  npmClient: "yarn",
  plugins: [
    "@umijs/plugins/dist/antd",
    "@umijs/plugins/dist/locale",
    "@umijs/plugins/dist/layout",
    "@umijs/plugins/dist/initial-state",
    "@umijs/plugins/dist/model",
    "@umijs/plugins/dist/access",
  ],
  antd: {
    
  },
  model: {},
  initialState: {},
  define: env[REACT_APP_ENV],
  routes,
  hash: true,
  history: {
    type: 'hash',
  },
  manifest: {
    basePath: '/',
  },
  publicPath:NODE_ENV!=="development"?"./":"/"
});
